package com.kuangjia.boss.localBOSS.ceShi.controller;

import com.kuangjia.boss.common.annotation.WebLog;
import com.kuangjia.boss.common.entity.Result;
import com.kuangjia.boss.localBOSS.ceShi.mapper.CeShiMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 测试 - Controller
 * </p>
 *
 * @author JiangYiji
 * @since 2022/22/22
 */
@Slf4j
@RestController
@RequestMapping("/ceshi")
public class CeShiController {

//    @Autowired
//    private CeShiService ceShiService;

    @Resource
    private CeShiMapper ceShiMapper;

    /**
     * 查询总数据量
     */
    @WebLog
    @PostMapping("/ceshi")
    public Result queryNumberTotal() {
        List<String> result = ceShiMapper.ceshi();
        return Result.success(result);
    }

}
